package com.yilu.driver.mvp.contract;

import com.is.common.base.BaseModel;
import com.is.common.base.BasePresenter;
import com.is.common.base.BaseView;
import com.is.common.retrofitrxcache.RxCacheResult;
import com.yilu.driver.entity.ScroeRegisterResponse;

import org.json.JSONObject;

import rx.Observable;

/**
 * @author Administrator
 * @date 2017/4/13 0013
 */

public interface ScoreRegisterContract {
    interface Model extends BaseModel {

        //成绩登记
        Observable<RxCacheResult<ScroeRegisterResponse>> scoreRegister(JSONObject json);
    }

    interface View extends BaseView {
        //更新UI
        void retureScoreRegister(ScroeRegisterResponse unRegisteredTrainee);
    }

    abstract class Presenter extends BasePresenter<View, Model> {

        //发送成绩请求
        public abstract void scoreRegister(JSONObject json);
    }
}
